<?php
/** @var CatalogController $this */
/** @var Catalog $data */
?>
<div class="view">
    <?php if (!empty($data->catalog_name)): ?>
        <div class="field">
            <div class="field_name">
                <b><?php echo CHtml::encode($data->getAttributeLabel('catalog_name')); ?>:</b>
            </div>
            <div class="field_value">
                <?php echo CHtml::encode($data->catalog_name); ?>
            </div>
        </div>

    <?php endif; ?>

    <?php if (!empty($data->sort_id)): ?>
        <div class="field">
            <div class="field_name">
                <b><?php echo CHtml::encode($data->getAttributeLabel('sort_id')); ?>:</b>
            </div>
            <div class="field_value">
                <?php echo CHtml::encode($data->sort_id); ?>
            </div>
        </div>

    <?php endif; ?>

    <?php if (!empty($data->is_active)): ?>
        <div class="field">
            <div class="field_name">
                <b><?php echo CHtml::encode($data->getAttributeLabel('is_active')); ?>:</b>
            </div>
            <div class="field_value">
                <?php echo CHtml::encode($data->is_active); ?>
            </div>
        </div>

    <?php endif; ?>

    <?php if (!empty($data->parent->catalog_name)): ?>
        <div class="field">
            <div class="field_name">
                <b><?php echo CHtml::encode($data->getAttributeLabel('parent_id')); ?>:</b>
            </div>
            <div class="field_value">
                <?php echo CHtml::encode($data->parent->catalog_name); ?>
            </div>
        </div>

    <?php endif; ?>
</div>